Integrand size = 15, antiderivative size = 30 \[ \int \frac {\cosh ^4(x)}{1-\sinh ^2(x)} \, dx=-\frac {5 x}{2}+2 \sqrt {2} \text {arctanh}\left (\sqrt {2} \tanh (x)\right )-\frac {1}{2} \cosh (x) \sinh (x) \]
Time = 0.04 (sec) , antiderivative size = 32, normalized size of antiderivative = 1.07 \[ \int \frac {\cosh ^4(x)}{1-\sinh ^2(x)} \, dx=-2 \left (\frac {5 x}{4}-\sqrt {2} \text {arctanh}\left (\sqrt {2} \tanh (x)\right )+\frac {1}{8} \sinh (2 x)\right ) \]
Time = 0.23 (sec) , antiderivative size = 43, normalized size of antiderivative = 1.43, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {3042, 3670, 316, 25, 397, 219}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\cosh ^4(x)}{1-\sinh ^2(x)} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\cos (i x)^4}{1+\sin (i x)^2}dx\) |
\(\Big \downarrow \) 3670 |
\(\displaystyle \int \frac {1}{\left (1-2 \tanh ^2(x)\right ) \left (1-\tanh ^2(x)\right )^2}d\tanh (x)\) |
\(\Big \downarrow \) 316 |
\(\displaystyle -\frac {1}{2} \int -\frac {2 \tanh ^2(x)+3}{\left (1-2 \tanh ^2(x)\right ) \left (1-\tanh ^2(x)\right )}d\tanh (x)-\frac {\tanh (x)}{2 \left (1-\tanh ^2(x)\right )}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {1}{2} \int \frac {2 \tanh ^2(x)+3}{\left (1-2 \tanh ^2(x)\right ) \left (1-\tanh ^2(x)\right )}d\tanh (x)-\frac {\tanh (x)}{2 \left (1-\tanh ^2(x)\right )}\) |
\(\Big \downarrow \) 397 |
\(\displaystyle \frac {1}{2} \left (8 \int \frac {1}{1-2 \tanh ^2(x)}d\tanh (x)-5 \int \frac {1}{1-\tanh ^2(x)}d\tanh (x)\right )-\frac {\tanh (x)}{2 \left (1-\tanh ^2(x)\right )}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {1}{2} \left (4 \sqrt {2} \text {arctanh}\left (\sqrt {2} \tanh (x)\right )-5 \text {arctanh}(\tanh (x))\right )-\frac {\tanh (x)}{2 \left (1-\tanh ^2(x)\right )}\) |
3.4.51.3.1 Defintions of rubi rules used
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))* ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (Gt Q[a, 0] || LtQ[b, 0])
Int[((a_) + (b_.)*(x_)^2)^(p_)*((c_) + (d_.)*(x_)^2)^(q_), x_Symbol] :> Sim p[(-b)*x*(a + b*x^2)^(p + 1)*((c + d*x^2)^(q + 1)/(2*a*(p + 1)*(b*c - a*d)) ), x] + Simp[1/(2*a*(p + 1)*(b*c - a*d)) Int[(a + b*x^2)^(p + 1)*(c + d*x ^2)^q*Simp[b*c + 2*(p + 1)*(b*c - a*d) + d*b*(2*(p + q + 2) + 1)*x^2, x], x ], x] /; FreeQ[{a, b, c, d, q}, x] && NeQ[b*c - a*d, 0] && LtQ[p, -1] && ! ( !IntegerQ[p] && IntegerQ[q] && LtQ[q, -1]) && IntBinomialQ[a, b, c, d, 2, p, q, x]
Int[((e_) + (f_.)*(x_)^2)/(((a_) + (b_.)*(x_)^2)*((c_) + (d_.)*(x_)^2)), x_ Symbol] :> Simp[(b*e - a*f)/(b*c - a*d) Int[1/(a + b*x^2), x], x] - Simp[ (d*e - c*f)/(b*c - a*d) Int[1/(c + d*x^2), x], x] /; FreeQ[{a, b, c, d, e , f}, x]
Int[cos[(e_.) + (f_.)*(x_)]^(m_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2)^( p_.), x_Symbol] :> With[{ff = FreeFactors[Tan[e + f*x], x]}, Simp[ff/f Su bst[Int[(a + (a + b)*ff^2*x^2)^p/(1 + ff^2*x^2)^(m/2 + p + 1), x], x, Tan[e + f*x]/ff], x]] /; FreeQ[{a, b, e, f}, x] && IntegerQ[m/2] && IntegerQ[p]
Leaf count of result is larger than twice the leaf count of optimal. \(49\) vs. \(2(22)=44\).
Time = 5.20 (sec) , antiderivative size = 50, normalized size of antiderivative = 1.67
method | result | size |
risch | \(-\frac {5 x}{2}-\frac {{\mathrm e}^{2 x}}{8}+\frac {{\mathrm e}^{-2 x}}{8}+\sqrt {2}\, \ln \left ({\mathrm e}^{2 x}-3+2 \sqrt {2}\right )-\sqrt {2}\, \ln \left ({\mathrm e}^{2 x}-3-2 \sqrt {2}\right )\) | \(50\) |
default | \(2 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\left (2 \tanh \left (\frac {x}{2}\right )+2\right ) \sqrt {2}}{4}\right )-\frac {1}{2 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{2}}-\frac {1}{2 \left (\tanh \left (\frac {x}{2}\right )-1\right )}+\frac {5 \ln \left (\tanh \left (\frac {x}{2}\right )-1\right )}{2}+\frac {1}{2 \left (1+\tanh \left (\frac {x}{2}\right )\right )^{2}}-\frac {1}{2 \left (1+\tanh \left (\frac {x}{2}\right )\right )}-\frac {5 \ln \left (1+\tanh \left (\frac {x}{2}\right )\right )}{2}+2 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\left (2 \tanh \left (\frac {x}{2}\right )-2\right ) \sqrt {2}}{4}\right )\) | \(98\) |
-5/2*x-1/8*exp(2*x)+1/8*exp(-2*x)+2^(1/2)*ln(exp(2*x)-3+2*2^(1/2))-2^(1/2) *ln(exp(2*x)-3-2*2^(1/2))
Leaf count of result is larger than twice the leaf count of optimal. 163 vs. \(2 (22) = 44\).
Time = 0.27 (sec) , antiderivative size = 163, normalized size of antiderivative = 5.43 \[ \int \frac {\cosh ^4(x)}{1-\sinh ^2(x)} \, dx=-\frac {\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4} + 20 \, x \cosh \left (x\right )^{2} + 2 \, {\left (3 \, \cosh \left (x\right )^{2} + 10 \, x\right )} \sinh \left (x\right )^{2} - 8 \, {\left (\sqrt {2} \cosh \left (x\right )^{2} + 2 \, \sqrt {2} \cosh \left (x\right ) \sinh \left (x\right ) + \sqrt {2} \sinh \left (x\right )^{2}\right )} \log \left (-\frac {3 \, {\left (2 \, \sqrt {2} - 3\right )} \cosh \left (x\right )^{2} - 4 \, {\left (3 \, \sqrt {2} - 4\right )} \cosh \left (x\right ) \sinh \left (x\right ) + 3 \, {\left (2 \, \sqrt {2} - 3\right )} \sinh \left (x\right )^{2} - 2 \, \sqrt {2} + 3}{\cosh \left (x\right )^{2} + \sinh \left (x\right )^{2} - 3}\right ) + 4 \, {\left (\cosh \left (x\right )^{3} + 10 \, x \cosh \left (x\right )\right )} \sinh \left (x\right ) - 1}{8 \, {\left (\cosh \left (x\right )^{2} + 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2}\right )}} \]
-1/8*(cosh(x)^4 + 4*cosh(x)*sinh(x)^3 + sinh(x)^4 + 20*x*cosh(x)^2 + 2*(3* cosh(x)^2 + 10*x)*sinh(x)^2 - 8*(sqrt(2)*cosh(x)^2 + 2*sqrt(2)*cosh(x)*sin h(x) + sqrt(2)*sinh(x)^2)*log(-(3*(2*sqrt(2) - 3)*cosh(x)^2 - 4*(3*sqrt(2) - 4)*cosh(x)*sinh(x) + 3*(2*sqrt(2) - 3)*sinh(x)^2 - 2*sqrt(2) + 3)/(cosh (x)^2 + sinh(x)^2 - 3)) + 4*(cosh(x)^3 + 10*x*cosh(x))*sinh(x) - 1)/(cosh( x)^2 + 2*cosh(x)*sinh(x) + sinh(x)^2)
Leaf count of result is larger than twice the leaf count of optimal. 2431 vs. \(2 (29) = 58\).
Time = 7.40 (sec) , antiderivative size = 2431, normalized size of antiderivative = 81.03 \[ \int \frac {\cosh ^4(x)}{1-\sinh ^2(x)} \, dx=\text {Too large to display} \]
-2716698600*sqrt(2)*x*tanh(x/2)**4/(1536796802*tanh(x/2)**4 + 1086679440*s qrt(2)*tanh(x/2)**4 - 3073593604*tanh(x/2)**2 - 2173358880*sqrt(2)*tanh(x/ 2)**2 + 1536796802 + 1086679440*sqrt(2)) - 3841992005*x*tanh(x/2)**4/(1536 796802*tanh(x/2)**4 + 1086679440*sqrt(2)*tanh(x/2)**4 - 3073593604*tanh(x/ 2)**2 - 2173358880*sqrt(2)*tanh(x/2)**2 + 1536796802 + 1086679440*sqrt(2)) + 7683984010*x*tanh(x/2)**2/(1536796802*tanh(x/2)**4 + 1086679440*sqrt(2) *tanh(x/2)**4 - 3073593604*tanh(x/2)**2 - 2173358880*sqrt(2)*tanh(x/2)**2 + 1536796802 + 1086679440*sqrt(2)) + 5433397200*sqrt(2)*x*tanh(x/2)**2/(15 36796802*tanh(x/2)**4 + 1086679440*sqrt(2)*tanh(x/2)**4 - 3073593604*tanh( x/2)**2 - 2173358880*sqrt(2)*tanh(x/2)**2 + 1536796802 + 1086679440*sqrt(2 )) - 2716698600*sqrt(2)*x/(1536796802*tanh(x/2)**4 + 1086679440*sqrt(2)*ta nh(x/2)**4 - 3073593604*tanh(x/2)**2 - 2173358880*sqrt(2)*tanh(x/2)**2 + 1 536796802 + 1086679440*sqrt(2)) - 3841992005*x/(1536796802*tanh(x/2)**4 + 1086679440*sqrt(2)*tanh(x/2)**4 - 3073593604*tanh(x/2)**2 - 2173358880*sqr t(2)*tanh(x/2)**2 + 1536796802 + 1086679440*sqrt(2)) + 2173358880*log(tanh (x/2) - 1 + sqrt(2))*tanh(x/2)**4/(1536796802*tanh(x/2)**4 + 1086679440*sq rt(2)*tanh(x/2)**4 - 3073593604*tanh(x/2)**2 - 2173358880*sqrt(2)*tanh(x/2 )**2 + 1536796802 + 1086679440*sqrt(2)) + 1536796802*sqrt(2)*log(tanh(x/2) - 1 + sqrt(2))*tanh(x/2)**4/(1536796802*tanh(x/2)**4 + 1086679440*sqrt(2) *tanh(x/2)**4 - 3073593604*tanh(x/2)**2 - 2173358880*sqrt(2)*tanh(x/2)*...
Leaf count of result is larger than twice the leaf count of optimal. 75 vs. \(2 (22) = 44\).
Time = 0.26 (sec) , antiderivative size = 75, normalized size of antiderivative = 2.50 \[ \int \frac {\cosh ^4(x)}{1-\sinh ^2(x)} \, dx=\sqrt {2} \log \left (-\frac {\sqrt {2} - e^{\left (-x\right )} + 1}{\sqrt {2} + e^{\left (-x\right )} - 1}\right ) - \sqrt {2} \log \left (-\frac {\sqrt {2} - e^{\left (-x\right )} - 1}{\sqrt {2} + e^{\left (-x\right )} + 1}\right ) - \frac {5}{2} \, x - \frac {1}{8} \, e^{\left (2 \, x\right )} + \frac {1}{8} \, e^{\left (-2 \, x\right )} \]
sqrt(2)*log(-(sqrt(2) - e^(-x) + 1)/(sqrt(2) + e^(-x) - 1)) - sqrt(2)*log( -(sqrt(2) - e^(-x) - 1)/(sqrt(2) + e^(-x) + 1)) - 5/2*x - 1/8*e^(2*x) + 1/ 8*e^(-2*x)
Leaf count of result is larger than twice the leaf count of optimal. 61 vs. \(2 (22) = 44\).
Time = 0.26 (sec) , antiderivative size = 61, normalized size of antiderivative = 2.03 \[ \int \frac {\cosh ^4(x)}{1-\sinh ^2(x)} \, dx=\frac {1}{8} \, {\left (10 \, e^{\left (2 \, x\right )} + 1\right )} e^{\left (-2 \, x\right )} - \sqrt {2} \log \left (\frac {{\left | -4 \, \sqrt {2} + 2 \, e^{\left (2 \, x\right )} - 6 \right |}}{{\left | 4 \, \sqrt {2} + 2 \, e^{\left (2 \, x\right )} - 6 \right |}}\right ) - \frac {5}{2} \, x - \frac {1}{8} \, e^{\left (2 \, x\right )} \]
1/8*(10*e^(2*x) + 1)*e^(-2*x) - sqrt(2)*log(abs(-4*sqrt(2) + 2*e^(2*x) - 6 )/abs(4*sqrt(2) + 2*e^(2*x) - 6)) - 5/2*x - 1/8*e^(2*x)
Time = 0.08 (sec) , antiderivative size = 66, normalized size of antiderivative = 2.20 \[ \int \frac {\cosh ^4(x)}{1-\sinh ^2(x)} \, dx=\frac {{\mathrm {e}}^{-2\,x}}{8}-\frac {5\,x}{2}-\frac {{\mathrm {e}}^{2\,x}}{8}+\sqrt {2}\,\ln \left (16\,{\mathrm {e}}^{2\,x}+\sqrt {2}\,\left (12\,{\mathrm {e}}^{2\,x}-4\right )\right )-\sqrt {2}\,\ln \left (16\,{\mathrm {e}}^{2\,x}-\sqrt {2}\,\left (12\,{\mathrm {e}}^{2\,x}-4\right )\right ) \]